<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml"
>
<head>
    <title>修改密码</title>
    <link th:replace="common/header"/>
</head>
<body class="no-skin">
<div th:replace="common/top"/>
<div class="main-container ace-save-state" id="main-container">
    <div th:replace="common/menu"/>
    <div class="main-content">
        <div class="main-content-inner">
            <div th:replace="common/title"/>
            <div class="page-content">
                <div th:replace="common/skin"/>
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form id="modifyform" class="form-vertical" th:action="@{/modifyPassword}" action=""
                              method="post">
                            <input type="hidden" id="id" name="id" th:value="${userId}"/>
                            <h3 class="header smaller lighter blue"><i class="fa fa-plus" aria-hidden="true"></i>修改密码
                            </h3>
                            <div class="row-fluid">
                                <!--PAGE CONTENT BEGINS HERE-->
                                <div class="span12">
                                    <div class="control-group">
                                        <label class="control-label" for="password">原始密码:<span
                                                style="color:red">*</span></label>
                                        <div class="controls">
                                            <input type="password" class="input_fix" id="password" name="password"
                                                   placeholder="原始密码"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span12">
                                    <div class="control-group">
                                        <label class="control-label" for="npassword">新密码:<span
                                                style="color:red">*</span></label>
                                        <div class="controls">
                                            <input type="password" class="input_fix" id="npassword" name="npassword"
                                                   placeholder="新密码"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span12">
                                    <div class="control-group">
                                        <label class="control-label" for="cpassword">确认密码:<span
                                                style="color:red">*</span></label>
                                        <div class="controls">
                                            <input type="password" class="input_fix" id="cpassword" name="cpassword"
                                                   placeholder="确认密码"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span12">
                                    <div class="control-group">
                                        <label class="control-label" for="" th:text="${msg}"></label>
                                    </div>
                                </div>
                            </div>

                            <div class="row-fluid">
                                <div class="text-center span12">
                                    <button class="btn btn-primary" type="submit"><i class="fa fa-floppy-o"
                                                                                     aria-hidden="true"></i>提交
                                    </button>
                                    <button class="btn btn-danger" type="reset"><i class="fa fa-times"
                                                                                   aria-hidden="true"></i>取消
                                    </button>
                                    <a class="btn" href="getAll" th:href="@{/index}"><i class="fa fa-reply"
                                                                                        aria-hidden="true"></i>返回首页</a>
                                </div>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <div th:replace="common/footer"/>
</div><!-- /.main-container -->
<div th:replace="common/buttom"/>

<script type="text/javascript">
    $("form").submit(function () {
        $(":submit", this).attr("disabled", "disabled");
    });
</script>
</body>
</html>
